﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NearForums.Validation;

namespace NearForums
{
    public class TopicTypeRelation:Entity
    {
        public TopicTypeRelation()
        { }

        public TopicTypeRelation(TopicType type, int topicId)
            : this()
        {
            this.Type = type;
            this.TopicID = topicId;
        }

        [RequireField]
        public TopicType Type
        {
            get;
            set;
        }

        [RequireField]
        public int TopicID
        {
            get;
            set;
        }
    }
}
